<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript" src="../js/vue.js">
		</script>
		<script src="../js/vue-router.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<router-link to="/account">
				account
			</router-link>
			<router-view>

			</router-view>
		</div>
		<template id="tmp">
			<div>
				<h1 style="color: hotpink;">
					ACCOUNT
				</h1>
				<router-link to="/account/login">login</router-link>
				<router-link to="/account/register">register</router-link>
				<router-view>
				</router-view>
			</div>
		</template>
		<script>
			var account = {
				template: '#tmp'
			}
			var login = {
				template: '<h3 style="color:hotpink;">login</h3>'
			}
			var register = {
				template: '<h3 style="color:hotpink;">register</h3>'
			}
			var router = new VueRouter({
				routes: [{
					path: '/account',
					component: account,
					children: [{
							path: 'login',
							component: login
						},
						{
							path: 'register',
							component: register
						},
					]
				}]
			})
			new Vue({
				el: '#app',
				data: {},
				methods: {},
				router: router,

			})
		</script>
	</body>
</html>
